﻿# CMakeList.txt: OpenGLPractice 的 CMake 项目，在此处包括源代码并定义
# 项目特定的逻辑。
#
cmake_minimum_required (VERSION 3.8)

include_directories(
	"."
	"./src"
	"./glm"
	"./stb"
	"./assimp"
)

link_directories(
	"./lib/glfw/${CMAKE_BUILD_TYPE}"
	"./lib/assimp"
)

link_libraries(
	"glfw3.lib"
	"assimp-vc142-mt.lib"
)

#message(WARNING "./lib/glfw/${CMAKE_BUILD_TYPE}")

# 将源代码添加到此项目的可执行文件。
add_executable (OpenGLPractice
				"./glad/glad.c"
				"./stb/stb_image.h"
				"./stb/imageLoader.cpp"
				"./src/OpenGLPractice.cpp"
				"./src/OpenGLPractice.h"
				"./src/Shader.cpp"
				"./src/Shader.h"
				 "src/game.h" "src/game.cpp"
				 "src/resource_manager.h" "src/resource_manager.cpp"
				 "src/texture.h" "src/Texture.h" "src/Texture.cpp"
				 "src/sprite_renderer.h" "src/sprite_renderer.cpp"
				 "src/game_object.h" "src/game_object.cpp"
				 "src/game_level.h" "src/game_level.cpp"
				 "src/ball_object.h" "src/ball_object.cpp"
				 "src/particle_generator.h" "src/particle_generator.cpp"
				 "src/post_processor.h" "src/post_processor.cpp"
)

# TODO: 如有需要，请添加测试并安装目标。

# 64位
#if (CMAKE_CL_64)
    # 设置 可执行程序输出目录
#	set(publish_bin_debug 			${CMAKE_CURRENT_SOURCE_DIR}/publish/x64/bin/debug64)
#	set(publish_bin_release 		${CMAKE_CURRENT_SOURCE_DIR}/publish/x64/bin/release64)

    # 设置库文件输出目录
	#set(publish_lib_debug 			${CMAKE_CURRENT_SOURCE_DIR}/publish/x64/lib/debug64)
	#set(publish_lib_release 		${CMAKE_CURRENT_SOURCE_DIR}/publish/x64/lib/release64)

	#set(PROJECT_NAME 				${PROJECT_NAME}64)
# 32
#else()
 # 设置 可执行程序输出目录
	set(publish_bin_debug 			${CMAKE_CURRENT_SOURCE_DIR}/src/Texture)
	set(publish_bin_release 		${CMAKE_CURRENT_SOURCE_DIR}/src/Texture)

 # 设置库文件输出目录
	#set(publish_lib_debug 			${CMAKE_CURRENT_SOURCE_DIR}/publish/x86/lib/debug)
	#set(publish_lib_release 		${CMAKE_CURRENT_SOURCE_DIR}/publish/x86/lib/release)
#endif()

message(WARNING "./lib/glfw/${publish_bin_debug}")

#set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_DEBUG 	${publish_bin_debug})
#set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_RELEASE 	${publish_bin_release})
set(EXECUTABLE_OUTPUT_PATH ${publish_bin_debug})
